import setQueryAppCode from '../../utils/business/set-query-app-code'

function entryList(self, routerPrefix) {
  return ['/accept/']
}

export function accept(self) {
  let routerPrefix = ''
  // 辨别是否真实地址
  if (!self.$router.options.base.match('accept')) {
    routerPrefix = `/accept`
  }

  const appCode = setQueryAppCode(self)

  return {
    // 头部菜单
    entryList: entryList(self, routerPrefix),
    // 菜单详情
    entry: {
      '/accept/': {
        name: '统一受理',
        url: `$router|${routerPrefix}/${appCode}`
      }
    }
  }
}
